<template>
	<div class="son">
		<h3>孙组件 —— 谢谢父给的：a是{{a}}，b是{{b}}，c是{{c}}，d是{{d}}，e是{{e}}</h3>
		<button @click="$emit('gengxinA',999)">修改父亲的A</button>
	</div>
</template>

<script>
	export default {
		name:'GrandChild',
		props:['a','b','c','d','e'],
	}
</script>

<style lang="less" scoped>
	.son{
		margin-top: 20px;
		background-color: orange;
		padding: 20px;
		border-radius: 10px;
		box-shadow: 0 0 10px black;
	}
</style>